package app

import (
	"my-desktop/controller"
	"net/http"
)

func Router() {
	http.HandleFunc("/user/register", controller.Register)
	http.HandleFunc("/user/login", controller.Login)
	http.HandleFunc("/user/getInfo", controller.GetUserInfo)
	http.HandleFunc("/user/logout", controller.Logout)

	http.HandleFunc("/ssh/connect", controller.Connect)
	http.HandleFunc("/ssh/shell", controller.ExecuteShell)
	http.HandleFunc("/ssh/ws", controller.WSConnect)

	http.HandleFunc("/test", controller.GOTest)
}
